package com.itheima.design.mode.responsibility;

/**
 * 具体的责任逻辑实现
 */
public class ResponsibilityB implements Responsibility {

    @Override
    public void process(Request request, ResponsibilityChain chain) {
        System.out.println("-----B前置增强-----");
        //ResponsibilityB处理完以后调用ResponsibilityChain的process方法交给下一个责任逻辑处理
        chain.process(request);
        System.out.println("-----B后置增强-----");
    }
}
